<link href="/public/css/them1/Base.css" type="text/css" rel="stylesheet" />
<link href="/public/css/them1/News.css" type="text/css" rel="stylesheet" />
<link href="/public/css/them1/Menu-2.css" type="text/css" rel="stylesheet" />
<center>

    <div class="div_content_all">
        <?php include dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'home' . DIRECTORY_SEPARATOR . 'top_menu2.php'; ?>

        <div class="clear"></div>

        <div id="breadcrumb"></div>

        <div id="content">
            <div class="bortop"></div>
            <div class="borleft">
                <div class="borright">
                    <div class="bgwhite">
                        <div style="height: 4px;"></div>
                        <div id="left-col">
                            <div class="float_list">
                                <div class="left_list">
                                    <div id="bycategory">

                                        <div class="top">
                                            <div class="title">
                                                <a class="Home" href="<?php echo $root_page;?>">Trang chủ</a> > <a href="<?php echo $root_page;?>/tintuc/">Tin tức</a>
                                                <?php foreach ($aryNewsParentCateogry as $key => $value) {?>
                                                > <a href="/tin/<?php echo $value['news_category_id'];?>/<?php echo $value['news_category_filter'];?>.html" title="<?php echo $value['news_category_name'];?>"><?php echo $value['news_category_name'];?></a>
                                                <?php } ?>
                                            </div>

                                            <div class="first">
                                                <a href="/chitiet/<?php echo $aryNewsFirst['news_id'];?>/<?php echo $aryNewsFirst['news_title_filter'];?>.html"><img class="fl" src="<?php echo $aryNewsFirst['news_large_image'];?>" title="<?php echo $aryNewsFirst['news_title'];?>" alt="<?php echo $aryNewsFirst['news_title'];?>"></a>
                                                <h1>
                                                    <a href="/chitiet/<?php echo $aryNewsFirst['news_id'];?>/<?php echo $aryNewsFirst['news_title_filter'];?>.html" title="<?php echo $aryNewsFirst['news_title'];?>">
                                                        <?php echo $aryNewsFirst['news_title'];?>
                                                    </a>
                                                </h1>
                                                <div class="NewsTime">
                                                    <?php if($aryNewsFirst['news_updated_date'] != '' && $aryNewsFirst['news_updated_date'] != '0000-00-00 00:00:00') {?>
                                                        <?php echo date('d/m/Y', strtotime($aryNewsFirst['news_updated_date']));?>
                                                    <?php } ?>
                                                </div>
                                                <p class="description">
                                                    <?php echo $aryNewsFirst['news_content_filter'];?>
                                                </p>
                                            </div>
                                            <p class="clear"></p>
                                        </div>
                                        <div class="medium">
                                            <?php foreach ($aryNews as $key => $value) {?>
                                            <ul>
                                                <li>
                                                    <h4>
                                                        <p>

                                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                                <img class="fl" src="<?php echo $value['news_main_image'];?>" title="<?php echo $value['news_title'];?>" alt="<?php echo $value['news_title'];?>"/>
                                                                <?php echo $value['news_title'];?>
                                                            </a>
                                                        </p>
                                                    </h4>
                                                    <div class="NewsTime">
                                                        <?php if($value['news_updated_date'] != '' && $value['news_updated_date'] != '0000-00-00 00:00:00') {?>
                                                            <?php echo date('d/m/Y', strtotime($value['news_updated_date']));?>
                                                        <?php } ?>
                                                    </div>

                                                    <p class="description">
                                                        <?php echo $value['news_content_filter'];?>
                                                    </p>
                                                    <p class="clear"></p>
                                                </li>

                                            </ul>
                                            <?php if($key == 9){ break;} } ?>

                                        </div>

                                    </div>
                                </div>
                                <div class="right_list">


                                    <div id="mostread" class="Box1">
                                        <div class="Header">
                                            10 sản phẩm bán chạy nhất
                                        </div>
                                        <div class="ContentBlack Content">
                                            <ul>
                                                <?php foreach ($aryTopProduct as $key => $value) {?>
                                                    <li>
                                                        <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html" title="<?php echo $value['product_title'];?>">
                                                            <span><?php echo $key+1;?></span>.<span style="padding-left: 5px;"><?php echo $value['product_title'];?></span>
                                                        </a>
                                                    </li>
                                                <?php } ?>
                                            </ul>

                                            <div class="source">
                                                (Nguồn Globe.com.vn)</div>
                                        </div>
                                    </div>


                                    <div id="mostread" class="Box1">
                                        <div class="Header">
                                            Sản phẩm mới ra mắt
                                        </div>
                                        <div class="box_content_back" style="text-align: center;">
                                            <table cellspacing="0" border="0" style="border-collapse:collapse;">
                                                <tr>
                                                    <?php $i = 1; foreach ($aryNewsProduct as $key => $value) { ?>
                                                    <td class="align" align="center">
                                                        <div class="image">
                                                            <div class="divvalign">
                                                                <div class="divvalign2">
                                                                    <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html" title="<?php echo $value['product_title'];?>"><img height="80" width="80" src="<?php echo $value['product_main_image']?>" title="<?php echo $value['product_title'];?>" alt="<?php echo $value['product_title'];?>"/></a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="name">
                                                            <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html" title="<?php echo $value['product_title'];?>"><?php echo $value['product_title'];?></a>
                                                        </div>
                                                    </td>
                                                    <?php echo ($i % 2 == 0) ? '</tr><tr>' : '';?>
                                                    <?php $i++; } ?>
                                                </tr>
                                            </table>
                                        </div>

                                    </div>

                                </div>
                                <div class="clear"></div>
                                <div class="bottom">
                                    <div class="newsother">
                                        Các tin khác
                                    </div>
                                    <div class="Underline"></div>
                                    <div class="list">
                                        <?php foreach ($aryNews as $key => $value) {?>
                                            <?php if($key > 2) {?>
                                                <div class="description">
                                                    <a class="bullet" href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                <?php echo $value['news_title'];?>
                                            </a>
                                            <span class="date">(<?php echo ($value['news_updated_date'] != '' && $value['news_updated_date'] != '0000-00-00 00:00:00') ? date('d/m/Y', strtotime($value['news_updated_date'])) : ''; ?>)</span>
                                        </div>
                                            <?php } ?>
                                        <?php } ?>
                                    </div>
                                    <div class="Underline"></div>
                                    
                                </div>
                            </div>

                        </div>
                        <div id="right-col">
                            <div id="mostread" class="Box1">
                                <div class="Header">
                                    Bài đọc nhiều nhất
                                </div>
                                <div class="Content">
                                    <ul>
                                        <?php foreach ($aryTopViews as $key => $value) {?>
                                        <li>
                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                <?php echo $value['news_title'];?>
                                            </a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                </div>

                            </div>


                            <div id="mostread" class="Box1">
                                <div class="Content">
                                    <span></span>
                                </div>
                            </div>


                            <div class="div_height">
                            </div>
                            <div id="mostread" class="Box1">
                                <div class="Header">
                                    Danh mục sản phẩm
                                </div>
                                <div class="Content">
                                    <div class="height"></div>
                                    <div class="div_item_category_list">
                                        <?php include 'news_product_category.php';?>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
            <div class="borbottom">

            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <?php include dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'home'.DIRECTORY_SEPARATOR.'home_footer.php'; ?>
</center>